const express = require('express');
const result = require('../models/result');
const router = express.Router();

const crypto = require('crypto');

router.get(('/'), function(req, res, next) {
    const data = {
        "description": "template api server index"
    };
    result.success(res, data);
});
router.get('/about', function(req, res, next) {
    const data = {
        "author": "ming",
        "description": "NodeJS template api server",
        "version": "0.0.1"
    };
    result.success(res, data);
});

module.exports = router;